﻿using System;
using System.Data.Entity;
using System.Linq;

namespace OrderApp
{
    public class OrderContext : DbContext
    {
        public OrderContext() : base("OrderDB")
        {
            Database.SetInitializer(
                new DropCreateDatabaseIfModelChanges<OrderContext>()
                );
        }
        public DbSet<Order> Orders { get; set; }
    }
}

    //public class MyEntity
    //{
    //    public int Id { get; set; }
    //    public string Name { get; set; }
    //}
